
import 'package:get/get.dart';

class CommunityController extends GetxController {
  var tabBarList = ["全部", "OOTD", "美食", "萌宠", "美景", "仙女"].obs;
  var tags = [
    "# 今日碎碎念今日碎碎念",
    "# 今日碎碎念今日碎碎念",
    "# 今日碎碎念今日碎碎念",
    "# 今日碎碎念今日碎碎念",
    "# 今日碎碎念今日碎碎念",
    "# 今日碎碎念今日碎碎念"
  ].obs;
  var listView = [
    CommunityItem(),
    CommunityItem(),
    CommunityItem(),
    CommunityItem(),
    CommunityItem(),
    CommunityItem(),
    CommunityItem(),
    CommunityItem(),
    CommunityItem()
  ].obs;

  var commentList = [
    CommentItem(isComment: false),
    CommentItem(isComment: true),
    CommentItem(isComment: false),
    CommentItem(isComment: false),
    CommentItem(isComment: true),
    CommentItem(isComment: false),
    CommentItem(isComment: false),
    CommentItem(isComment: true),
    CommentItem(isComment: false),
    CommentItem(isComment: false),
    CommentItem(isComment: false)
  ].obs;

}

class CommunityItem {
  String headUrl = "assets/images/meinv.jpeg";
  String name = "名称";
  String introduce = "别把沙子放大为绊脚石";
  List<String> images = [
    "assets/images/meinv.jpeg",
    "assets/images/meinv.jpeg",
    "assets/images/meinv.jpeg"
  ];
  String tags = "# 今日岁岁念";
  String content = "梦想不足以让你到达远方，但是到达远方的人一定要有梦想";
}

class CommentItem {
  String headUrl = "assets/images/meinv.jpeg";
  String name = "林承轩";
  String introduce = "字节跳动工程师";
  String content = "从成交流程来看，线下客户的成交流程远远短于线上来的客户，因为线下来的客户多是熟人介绍！";
  bool isComment = false;
  bool unflod = false;
  var comList = [{"name":"李明","value":"我赞同，说的太好了"},{"name":"李明","value":"我赞同，说的太好了"},{"name":"李明","value":"我赞同，说的太好了"}];

  CommentItem({String? headUr,String? name,String? introduce,String? content,bool? isComment = false}){
    this.isComment = isComment!;

  }
}